home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: ODF Inverted Text Question
- Sent: 8/12/96 10:16 AM
- Received: 8/12/96 10:41 AM
- From: Kirk Swenson, kswenson@keypress.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >>2. When I call the FW_CTextShape::RenderText method with an ink that is
- >>set to be inverted, it doesn't seem to invert correctly. Using the same
- >>ink with a FW_CRectShape inverts the rect. What gives?
- >>
- >We fixed a couple of problems with Invert but I am not sure we fixed this
- >one. I'll check
-
- Bear in mind that FW_kInvertInk corresponds to "an ink with black
- foreground color, white background color, and Invert transfer mode." If
- what you want is white text on a dark background (e.g. to indicate
- selection), as I recently did, you need to roll your own ink for this
- purpose. I use FW_CInk( FW_kRGBWhite, FW_kRGBBlack, FW_kCopy) to get white
- text in a black rectangle that covers what's underneath, and which makes it
- look selected. Would it make sense to add a FW_kSelectedTextInk to ODF
- that would be the analog to the existing FW_kNormalTextInk? Of course, to
- be completely correct, you should probably use the user's currently
- selected hilite color, which would mean it couldn't be a constant, unlike
- the other standard inks.
-
- Kirk Swenson
- Senior Software Engineer
- Key Curriculum Press
- kswenson@keypress.com
-
-
-